/**
 * @author:albert
 * @date:2016年7月1日
 */
package com.bkbw.live.common.business;

/**
 * @author albert
 *
 */
public class ItemSection {
	public static int ItemSection = 10000;
	public static int ItemSectionItem = 1;
	public static int ItemSectionEquip = 2;
	public static int ItemSectionWeapon = 3;
	
	public static int getItemSection(int itemId) {
		return itemId / ItemSection;
	}
	
	public static boolean isItem(int itemId) {
		if (itemId / ItemSection == ItemSectionItem) {
			return true;
		}
		return false;
	}
	
	public static boolean isEquip(int itemId) {
		if (itemId / ItemSection == ItemSectionEquip) {
			return true;
		}
		return false;
	}
	
	public static boolean isWeapon(int itemId) {
		if (itemId / ItemSection == ItemSectionWeapon) {
			return true;
		}
		return false;
	}
}
